// 垂直居中定位 absolute
@mixin position_center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
}

// 垂直居中对齐 flex
@mixin display_flex($justify-content) {
    display: flex;
	display: -webkit-flex;
    @if($justify-content) {
        justify-content: $justify-content
    }
    ;
    align-items: center;
}
/*撑满整个父元素*/
@mixin full_parent {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}


/*flex*/
@mixin flex_center($justify) {
    display: flex;
    @if($justify) {
        justify-content: $justify;
    }
    align-items: center;
}
// 背景
$bg_fff:#fff;
$bg_eee:#eee;